package com.example.mybatisplus.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.example.mybatisplus.model.domain.Dot;
import com.example.mybatisplus.model.domain.Repair;
import com.example.mybatisplus.mapper.RepairMapper;
import com.example.mybatisplus.model.dto.IndisciplineForm;
import com.example.mybatisplus.model.dto.RepairForm;
import com.example.mybatisplus.service.RepairService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
@Service
public class RepairServiceImpl extends ServiceImpl<RepairMapper, Repair> implements RepairService {
    @Autowired
    private RepairMapper repairMapper;

    @Override
    public List<RepairForm> selectRepair(Dot dot) {
        return repairMapper.selectRepair(dot);
    }

    public List<RepairForm> selectDoneRepair(Dot dot) {
        return repairMapper.selectDoneRepair(dot);
    }
//    public boolean allocateRepair(Integer id) {
//        return repairMapper.allocateRepair(id);
//    }

    @Override
    public List<RepairForm> getRepair(Dot dot) {

        return this.baseMapper.getRepair(dot);
    }
}
